
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module simpleparse.examples.bad_declaration</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="simpleparse.html"><font color="#ffffff">simpleparse</font></a>.<a href="simpleparse.examples.html"><font color="#ffffff">examples</font></a>.bad_declaration</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mcfletch/pylive/simpleparse/examples/bad_declaration.py">/home/mcfletch/pylive/simpleparse/examples/bad_declaration.py</a></font></td></tr></table>
    <p><tt>Demonstrates&nbsp;what&nbsp;happens&nbsp;when&nbsp;your&nbsp;declaration&nbsp;is&nbsp;syntactically&nbsp;incorrect<br>
&nbsp;<br>
When&nbsp;run&nbsp;as&nbsp;a&nbsp;script,&nbsp;will&nbsp;generate&nbsp;a&nbsp;traceback<br>
telling&nbsp;you&nbsp;that&nbsp;the&nbsp;grammar&nbsp;defined&nbsp;here&nbsp;is<br>
incorrectly&nbsp;formatted.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="simpleparse.common.comments.html">simpleparse.common.comments</a><br>
</td><td width="25%" valign=top><a href="simpleparse.common.numbers.html">simpleparse.common.numbers</a><br>
</td><td width="25%" valign=top><a href="simpleparse.common.strings.html">simpleparse.common.strings</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>declaration</strong> = '# note use of raw string when embedding in pytho...ring/number/identifier<font color="#c040c0">\n</font>ts             :=  [ <font color="#c040c0">\\</font>t]*<font color="#c040c0">\n</font>'<br>
<strong>testdata</strong> = '[test1]<font color="#c040c0">\n\t</font>val=23<font color="#c040c0">\n</font>'</td></tr></table>
</body></html>